package com.tsd.jxc.sale.service;

import com.tsd.core.vo.PageBean;
import com.tsd.jxc.sale.entity.JxcSaleQuotation;
import com.tsd.jxc.sale.entity.JxcSaleQuotationExt;
import com.tsd.system.entity.SysUser;
import com.tsd.system.entity.SysUserExt;

import java.util.List;
import java.util.Map;

/**
 * 描述：JxcSaleQuotation服务实现层接口
 *
 * @author Hillpool
 * @date 2022/12/12 11:26:43
 */
public interface JxcSaleQuotationService {

    /**
     * 描述：根据id获取JxcSaleQuotation
     *
     * @param id
     */
    JxcSaleQuotation getJxcSaleQuotationById(Long id) throws Exception;

    /**
     * 描述：根据sid获取JxcSaleQuotation
     *
     * @param sid
     */
    JxcSaleQuotationExt queryBySid(String sid) throws Exception;

    /**
     * 描述：根据sid列表删除JxcSaleQuotation
     *
     * @param list
     */
    void deleteJxcSaleQuotations(List<String> list, SysUser opUser) throws Exception;

    /**
     * 描述：保存或更新JxcSaleQuotation
     *
     * @param record
     * @param opUser
     */
    void saveJxcSaleQuotation(JxcSaleQuotationExt record, SysUserExt opUser) throws Exception;

    /**
     * 描述：根据params分页查询JxcSaleQuotation
     *
     * @param params
     * @param page
     */
    List<JxcSaleQuotationExt> findJxcSaleQuotations(Map<String, Object> params, PageBean page) throws Exception;

    /**
     * 描述：根据params分页查询JxcSaleQuotation
     *
     * @param params
     */
    List<JxcSaleQuotationExt> findJxcSaleQuotations(Map<String, Object> params) throws Exception;

    void changeJxcSaleQuotationAuditState(List<String> sidList, Integer state, SysUserExt opUser) throws Exception;

    void genJxcSaleQuotation2SaleOrder(List<String> sidList, SysUserExt opUser) throws Exception;

    List<JxcSaleQuotationExt> queryJxcSaleQuotationData4Print(List<String> sidList) throws Exception;
}